import request from '@/utils/request'

// 查询行业服务管理列表
export function listIndustryservice(query) {
  return request({
    url: '/wechat/industryservice/list',
    method: 'get',
    params: query
  })
}

// 查询行业服务管理详细
export function getIndustryservice(serviceId) {
  return request({
    url: '/wechat/industryservice/' + serviceId,
    method: 'get'
  })
}

// 新增行业服务管理
export function addIndustryservice(data) {
  return request({
    url: '/wechat/industryservice',
    method: 'post',
    data: data
  })
}

// 修改行业服务管理
export function updateIndustryservice(data) {
  return request({
    url: '/wechat/industryservice',
    method: 'put',
    data: data
  })
}
export function changeServiceStatus(serviceId, status) {
  const data = {
    serviceId,
    status
  }
  return request({
    url: '/wechat/industryservice',
    method: 'put',
    data: data
  })
}
// 删除行业服务管理
export function delIndustryservice(serviceId) {
  return request({
    url: '/wechat/industryservice/' + serviceId,
    method: 'delete'
  })
}

// 导出行业服务管理
export function exportIndustryservice(query) {
  return request({
    url: '/wechat/industryservice/export',
    method: 'get',
    params: query
  })
}